<script type="text/javascript">
$(function(){
	$('#cont').beforeAfter();
});
</script>
<div id="cont">
 <div><img alt="before" src="<?php echo $this->skinUrl('/images/');?>imgbefore.jpg" width="600" height="366" /></div>
 <div><img alt="after" src="<?php echo $this->skinUrl('/images/');?>imgafter.jpg" width="600" height="366" /></div>
</div>